package com.lpinfo.spb.plateform.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("sys_user")
public class SysUser implements Serializable {

    //用户主键
    @TableId(value = "user_id", type = IdType.ID_WORKER)
    private Long userId;

    //用户名
    @TableField("user_name")
    private String userName;

    //用户密码
    @TableField("user_password")
    private String userPassword;

    //用户姓名
    @TableField("nick_name")
    private String nickName;

    //用户性别
    @TableField("user_gender")
    private String userGender;

    //用户手机号
    @TableField("user_phone")
    private String userPhone;

    //用户头像
    @TableField("user_avatar")
    private String userAvatar;

    //机构编号
    @TableField("dept_id")
    private Long deptId;

    //锁定标志
    @TableField("locked_flag")
    private String lockedFlag;

    //删除标志
    @TableField("delete_flag")
    private String deleteFlag;

    //租户标识
    @TableField("tenant_id")
    private Long tenantId;

    //创建人
    @TableField("create_user")
    private Long createUser;

    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;


}
